/************************************************************************
 * @file SiteManager.h
 * @author Ian Chen
 * @version 1.0
 *
 * @section LICENSE
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 3 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
 * General Public License for more details at
 * http://www.gnu.org/licenses/lgpl.html
 *
 ************************************************************************/
#ifndef SITEMANAGER_H
#define SITEMANAGER_H

#include <vector>
using namespace std;

#include <plugin/plugin_global.h>

namespace antu
{
namespace plugin
{
typedef struct SiteInfo
{
    QString name;
    QString url;
} SiteInfoStruct;

class PLUGINSHARED_EXPORT SiteManager
{
public:
    SiteManager();

    vector<SiteInfoStruct> sites();
    void addSite(const QString& name, const QString& url);
    void removeAt(size_t index);

private:
    QString siteFile() const;
};
}
}

#endif // SITEMANAGER_H
